package org.khd.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.khd.base.domain.BaseDomain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department{
    private Long id;
    @ApiModelProperty(value = "部门名字")
    private String name;
    @ApiModelProperty(value = "部门介绍")
    private String intro;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    private Long managerId;
    private Long parentId;
    private String path;
    private Integer state;

    private Employee manager;
    private Department parent;

    private List<Department> children = new ArrayList<>();
}
